Use case_ignore_strncmp instead of strncasecmp.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 27 Mar 2006 00:42:05 +0000 (00:42 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 27 Mar 2006 00:42:05 +0000 (00:42 +0000)
gpsbabel/wfff_xml.c

index c9cc2d441eb783265972a46ab7b5e9279347d10f..647c515171d87e6c84a2d24db631efc434cff12a 100644 (file)
@@ -213,14 +213,14 @@ void wfff_e(const char *args, const char **unused)
                wpt_tmp->fix = fix_unknown;
 
                wpt_tmp->wpt_flags.icon_descr_is_dynamic = 1;
-               if (strncasecmp(ap_wep,"On",2)==0) {
-                       if (strncasecmp(ap_type,"AP",2)==0) {
+               if (case_ignore_strncmp(ap_wep,"On",2)==0) {
+                       if (case_ignore_strncmp(ap_type,"AP",2)==0) {
                                wpt_tmp->icon_descr = xstrdup(aicicon); /* Infra Closed */
                        } else {
                                wpt_tmp->icon_descr = xstrdup(ahcicon); /* AdHoc Closed */
                        }
                } else {
-                       if (strncasecmp(ap_type,"AP",2)==0) {
+                       if (case_ignore_strncmp(ap_type,"AP",2)==0) {
                                wpt_tmp->icon_descr = xstrdup(aioicon); /* Infra Open */
                        } else {
                                wpt_tmp->icon_descr = xstrdup(ahoicon); /* AdHoc Open */